<?php

namespace App\Library\Requests\ProductOrder;

use App\Library\Requests\Base\BaseDTORequest;
use App\Library\Rules\ExpressesNoRule;

class ProductOrderDeliveryRequest extends BaseDTORequest
{
    public function rules(): array
    {
        return [
            $this->No => 'required|string|size:20|regex:' . __('com.numReg'),
            'expressesNo' => ['required', 'string', 'max:255', new ExpressesNoRule()]
        ];
    }
}
